package com.example.shop_2207.entity

import androidx.room.Entity
import androidx.room.PrimaryKey

data class UserEntityResult(
    val code: Int,
    val `data`: UserEntity,
    val message: String
)
//any可行 但保存到数据库时，不支持any类型
@Entity(tableName = "user")
data class UserEntity(
    val address: String?,
    val admin: Boolean,
    val birth: String?,
    val coinCount: Int,
    val email: String?,
    var icon: String,
    //(autoGenerate = true)自己创建表时，如需用到主键自增情况可使用
    @PrimaryKey
    val id: Int,
    val nickname: String?,
    val password: String,
    val publicName: String?,
    val sex: String?,
    val token: String,
    val type: Int,
    val username: String
)